<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<link rel="stylesheet" href="/wenda/Public/Home/Css/common.css" />
	<script type="text/javascript" src='/wenda/Public/Home/Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='/wenda/Public/Home/Js/top-bar.js'></script>
	<link rel="stylesheet" href="/wenda/Public/Home/Css/member.css" />
	<link rel="stylesheet" href="/wenda/Public/Home/Css/face.css">

</head>
<body>
		<div id='top-fixed'>
	<div id='top-bar'>
		<ul class="top-bar-left fl">
			<li><a href="" target='_blank'>360搜索</a></li>
			<li><a href="" target='_blank'>360官方网站</a></li>
		</ul>
		<ul class='top-bar-right fr'>
			<?php if(isset($_SESSION['username']) && isset($_SESSION['uid'])): ?><li class='userinfo'>
					<a href="<?php echo U('Member/index',array('uid'=>$_SESSION['uid']));?>" class='uname'><?php echo (session('username')); ?></a>
				</li>
				<li style='color:#eaeaf1'>|</li>
				<li><a href="<?php echo U('Login/out');?>">退出</a></li> 
			<?php else: ?>
				<li><a href="" class='login'>登录</a></li>
				<li style='color:#eaeaf1'>|</li>
				<li><a href="" class='register'>注册</a></li><?php endif; ?>
		</ul>
	</div>
<!-- 提问搜索框 -->
	<div id='search'>
		<div class='logo'><a href="<?php echo U('Index/index');?>" class='logo'></a></div>
		<form action="<?php echo U('Search/index');?>" method='get'>
			<input type="text" name='search' class='sech-cons'/>
			<input type="submit" class='sech-btn'/>
		</form>
		<a href="<?php echo U('Ask/index');?>" class='ask-btn'></a>
	</div>
<!-- 提问搜索框结束 -->
</div>
<div style='height:110px'></div>
<!----------导航条---------->
<div id='nav'>
	<ul class='list'>
		<li class='nav-sel'><a href="<?php echo U('Index/index');?>" class='home'>问答首页</a></li>
		<li class='nav-sel ask-cate'>
			<a href="" class='ask-list'><span>问题库</span><i></i></a>
			<ul class='hidden'>
				<?php if(is_array($topCate)): $i = 0; $__LIST__ = $topCate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
					<a href="<?php echo U('List/index',array('cid'=>$vo['cid'],'where'=>0));?>"><?php echo ($vo["cname"]); ?></a>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</li>
	</ul>
	<p class='total'>累计提问：<?php echo ($askNum); ?></p>
</div>

	<!----------注册框---------->
	<div id='register' class='hidden'>
		<div class='reg-title'>
			<p>欢迎注册后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div id='reg-wrap'>
			<div class='reg-left'>
				<ul>
					<li><span>账号注册</span></li>
				</ul>
				<div class='reg-l-bottom'>
					已有账号，<a href="" id='login-now'>马上登录</a>
				</div>
			</div>
			<div class='reg-right'>
				<form action="<?php echo U('Reg/index');?>" method='post' id='reg' name='register'>
					<ul>
						<li>
							<label for="reg-uname">用户名</label>
							<input type="text" name='username' id='reg-uname' ajaxurl="<?php echo U('Reg/check_user');?>" datatype="s2-14" nullmsg="请填写2-14个字符：字母、数字或中文" errormsg="请填写2-14个字符：字母、数字或中文" sucmsg='验证通过' />
							<span class="Validform_checktip">2-14个字符：字母、数字或中文</span>
						</li>
						<li>
							<label for="reg-pwd">密码</label>
							<input type="password" name='password' id='reg-pwd' datatype="s2-14" nullmsg="请填写6-20个字符:字母、数字或下划线 _" errormsg="请填写6-20个字符:字母、数字或下划线 _" sucmsg='验证通过' />
							<span class="Validform_checktip">6-20个字符:字母、数字或下划线 _</span>
						</li>
						<li>
							<label for="reg-pwded">确认密码</label>
							<input type="password" name='pwded' id='reg-pwded' datatype="*"  recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！"  sucmsg='验证通过' />
							<span class="Validform_checktip">请再输入一次密码</span>
						</li>
						<li>
							<label for="reg-verify">验证码</label>
							<input type="text" name='verify' id='reg-verify' ajaxurl="<?php echo U('Reg/check_verify');?>"  datatype="*" nullmsg="请输入验证码" errormsg="验证码不正确"  sucmsg='验证通过' />
							<img src="<?php echo U('Reg/code');?>" width='99' height='35' alt="验证码" id='verify-img' onclick="this.src=this.src+'?'+Math.random()"  />
							<span class="Validform_checktip">请输入图中的字母或数字，不区分大小写</span>
						</li>
						<li class='submit'>
							<input type="submit" value='立即注册'/>
						</li>
					</ul>
				</form>
			</div>
		</div>
	</div>

	<!----------登录框---------->	
	<div id='login' class='hidden'>
		<div class='login-title'>
			<p>欢迎您登录后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div class='login-form'>
			<span id='login-msg' style="background: none;"></span>
			<!-- 登录FORM -->
			<form id='logincon' action="<?php echo U('Login/index');?>" method='post' name='login'>
				<ul>
					<li>
						<label for="login-acc">账号</label>
						<input type="text" name='account' class='input' id='login-acc' ajaxurl="<?php echo U('Login/check_user');?>" datatype="s2-14" nullmsg="请填写2-14个字符：字母、数字或中文" errormsg="请填写2-14个字符：字母、数字或中文" sucmsg='' />
					</li>
					<li>
						<label for="login-pwd">密码</label>
						<input type="password" name='password' class='input' id='login-pwd' datatype="s2-14" nullmsg="请填写6-20个字符:字母、数字或下划线 _" errormsg="请填写6-20个字符:字母、数字或下划线 _" />
					</li>
					<li class='login-auto'>
						<label for="auto-login">
							<input type="checkbox" checked='checked' name='auto'  id='auto-login'/>&nbsp;下一次自动登录
						</label>
						<a href="" id='regis-now'>注册新账号</a>
					</li>
					<li>
						<input type="submit" value='' id='login-btn'/>
					</li>
				</ul>
			</form>
		</div>
	</div>

<!--背景遮罩--><div id='background' class='hidden'></div>
<!-- top结束 -->
<!--------------------中部-------------------->
	<div id='center'>
<!-- 左侧 -->
	<div id='left'>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href=""><img src="<?php echo ($meInfo["face"]); ?>" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href=""><b><?php echo ($meInfo["username"]); ?></b>
					</a>
					<a href="">
						<i class='level lv<?php echo ($meInfo["level"]); ?>' title='Level <?php echo ($meInfo["level"]); ?>'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><b class='point'><?php echo ($meInfo["gold"]); ?></b></a></dd>
				<dd>经验值：<?php echo ($meInfo["exp"]); ?></dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href=""><?php echo ($meInfo["answer"]); ?></a></td>
					<td><a href=""><?php echo ($meInfo["adoptBfb"]); ?>%</a></td>
					<td class='last'><a href=""><?php echo ($meInfo["ask"]); ?></a></td>
				</tr>
			</table>
		</div>

	<ul>
		<li class='myhome <?php if(ACTION_NAME == 'index'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('index',array('uid'=>$meInfo['uid']));?>">我的首页</a>
		</li>
		<li class='myask <?php if(ACTION_NAME == 'my_ask'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('my_ask',array('uid'=>$meInfo['uid']));?>">我的提问</a>
		</li>
		<li class='myanswer <?php if(ACTION_NAME == 'my_answer'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('my_answer',array('uid'=>$meInfo['uid']));?>">我的回答</a>
		</li>
		<li class='mylevel <?php if(ACTION_NAME == 'my_level'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('my_level',array('uid'=>$meInfo['uid']));?>">我的等级</a>
		</li>
		<li class='mygold <?php if(ACTION_NAME == 'my_gold'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('my_gold',array('uid'=>$meInfo['uid']));?>">我的金币</a>
		</li>
		<?php if($_SESSION['uid']== $meInfo['uid']): ?><li class='myface <?php if(ACTION_NAME == 'my_face'): ?>cur<?php endif; ?>'>
			<a href="<?php echo U('my_face',array('uid'=>$meInfo['uid']));?>">上传头像</a>
		</li><?php endif; ?>	
		<li style="background:none"></li>
	</ul>
</div>
<!-- 左侧结束 -->
		<div id='right'>
			<p class='title'>头像上传</p>
			<ul class='ask-filter'>
			</ul>
			<div class='imgface_box'>
					<img src="<?php echo ($face); ?>" id="preview">
				<form action="<?php echo U('my_face',array('uid'=>$meInfo['uid']));?>" method="POST" enctype="multipart/form-data">
					<input type="file" name="face" id="face" >
					<input type="submit" value="上传头像" id="sub">
					<input type="hidden" name="uid" id="uid" value="<?php echo ($meInfo["uid"]); ?>" />	
				</form>
				<p>支持JPG、PNG、GIF图片类型，不能大于5M。推荐尺寸：180PX*180PX</p>
			</div>
		</div>
	</div>
<!-- 底部 -->
	<div id='bottom'>
		<p><?php echo (C("COPY")); ?></p>
		<p><?php echo (C("RECORD")); ?></p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="/wenda/Public/Home/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->